import request from '@/utils/request'

// 查询品牌管理列表
export function listBrand(query) {
  return request({
    url: '/pet/brand/list',
    method: 'get',
    params: query
  })
}

// 新增品牌管理
export function addBrand(data) {
  return request({
    url: '/pet/brand',
    method: 'post',
    data: data
  })
}
//新增寄养类型-会员
export function addFoster(data) {
  return request({
    url: '/pet/foster/add',
    method: 'post',
    data: data
  })
}
//寄养列表
export function listFoster(query) {
  return request({
    url: '/pet/foster/list',
    method: 'get',
    params: query
  })
}
//寄养宠物
export function getByVipNo(vipNo,query) {
  return request({
    url: '/pet/pets/getByVipNo/'+vipNo,
    method: 'get',
    params: query
  })
}
//新增寄养类型-散客
export function addFosterPet(data) {
  return request({
    url: '/pet/foster/addFoster',
    method: 'post',
    data: data
  })
}
//获取宠主--宠物列表
export function getPetList(no,data) {
  return request({
    url: '/pet/fos/getPetList/'+no,
    method: 'get',
    params: data
  })
}
//到店
export function toStore(data) {
  return request({
    url: '/pet/foster/changeStatus',
    method: 'post',
    data: data
  })
}
//结束寄养
export function stopFoster(data) {
  return request({
    url: '/pet/foster/changeStatusEndTime',
    method: 'post',
    data: data
  })
}
//取消寄养
export function resetFoster(data) {
  return request({
    url: '/pet/foster/changeStatusOut',
    method: 'post',
    data: data
  })
}
//去结算
export function setOrder(data) {
  return request({
    url: '/pet/foster/setOrder',
    method: 'post',
    data: data
  })
}
//追加预存款
export function addPrePrice(data) {
  return request({
    url: '/pet/foster/addPrePrice',
    method: 'post',
    data: data
  })
}
//退回预存款
export function refPrePrice(data) {
  return request({
    url: '/pet/foster/refPrePrice',
    method: 'post',
    data: data
  })
}
//退回预存款2
export function refPrePriceByCashier(data) {
  return request({
    url: 'pet/foster/refPrePriceByCashier',
    method: 'post',
    data: data
  })
}
// 查询寄养信息详细
export function getFoster(id) {
  return request({
    url: '/pet/foster/' + id,
    method: 'get'
  })
}
// 修改寄养信息
export function updateFoster(data) {
  return request({
    url: '/pet/foster',
    method: 'put',
    data: data
  })
}
// 删除寄养信息
export function delFoster(id) {
  return request({
    url: '/pet/foster/' + id,
    method: 'delete'
  })
}